package com.example.demo.entity.requestJson;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author : 杨丽辉
 * @date : 2021/3/5 20:45
 * @description:
 */
@ApiModel("作者锁定章节请求JSON类")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ALockChapterReq {
    /**
     *主键
     * 书籍章节id
     * isnull 1
     */
    @ApiModelProperty(value="书籍章节id",position=1)
    @TableId(type = IdType.ASSIGN_ID)
    private String chapterId;

    /**
     * 章节是否锁定（0：未锁定；1：已锁定,默认为未锁定
     * isnull 0
     */        @ApiModelProperty(value="章节是否锁定（0：未锁定；1：已锁定,默认为未锁定", position=10)
    private Integer lockStatus;

    public String getChapterId() {
        return chapterId;
    }

    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }

    public Integer getLockStatus() {
        return lockStatus;
    }

    public void setLockStatus(Integer lockStatus) {
        this.lockStatus = lockStatus;
    }

    @Override
    public String toString() {
        return "ALockChapterReq{" +
                "chapterId='" + chapterId + '\'' +
                ", lockStatus=" + lockStatus +
                '}';
    }
}
